<%
  #File:    /app/views/manage/users/_show.rhtml
  #Author:  Andrew Stone
  #Created: 08.02.2006
%>

<%=start_medium_div_wrapper%>
  <div id="page_title"><%=form_title%></div>
  <div id="medium">
    <table>
      <tbody>
      <%
        if @user.user_group.length > 0%>
          <tr>
            <td class="list_label">User <%=pluralize(@user.user_group.length,"Group")%>:</td>
            <td class="list_data">
            <%
              @user.user_group.each do |uug|
            %>
                <%=uug.name%><br/>
            <%
              end
            %>
            </td>
          </tr><%
        end 
      %>
        <tr>
          <td class="req_label">* First Name:</td>
          <td class="data">
            <%=h(@user.first_name)%>
          </td>
        </tr>
        <tr>
          <td class="label">Middle Name:</td>
          <td class="data">
            <%=h(@user.middle_name)%>
          </td>
        </tr>
        <tr>
          <td class="req_label">* Last Name:</td>
          <td class="data">
            <%=h(@user.last_name)%>
          </td>
        </tr>
        <tr>
          <td class="req_label">* Login:</td>
          <td class="data">
            <%=h(@user.login)%>
          </td>
        </tr>
        <% 
          if @user.role.gather_contact_info %>
            <%=render(:partial => "contact_info", :locals => {:edit_user => false})%><%
          end 
        %> 
        <% 
          if @user.role.gather_address_info %>
            <%=render(:partial => "address_info", :locals => {:edit_user => false})%><%
          end 
        %> 
      </tbody>
    </table>
    <div id="actions">
      <%=secure_links([
          secure_link_to("List",ca("/manage/users",list_method)),
          secure_link_to("Update",ca("/manage/users",update_method,@user.id))])%>
    </div>
  </div>
<%=end_div_wrapper%>
